#ifndef _DSWLANMSGSESSION_H
#define _DSWLANMSGSESSION_H

#include "libtcpcombase/dswmessagesession.h"

class CDswLanMsgSession : public CDswmessagesession
{
public:
	CDswLanMsgSession();
	virtual ~CDswLanMsgSession();
public:
	CDswLanMsgSession(LPST_ENV_T pEnv, struct bufferevent * pBev, int nHeadSize, char* pKey);
	static CDswLanMsgSession* createNew(LPST_ENV_T pEnv, struct event_base *base, int nfd, char* pKey);
private:
	void MakeReportPUA(CMarkup & xml);
	virtual int MakePayloadLength(char* pData, int nLen){return *((int*)pData);};
	virtual void SendMsg(char* pMsg);
	virtual void MakeRespXML(const char* pMsgType, CMarkup & xml, int nerrcode);
};

#endif

